/**
 * File: d:\工作\上海项目\上海1\中欧\code\src\assets\css\variable.less
 * Project: d:\工作\上海项目\上海1\中欧\code
 * Created Date: 2020-10-09 15:46:48
 * Author: Wang
 * -----
 * Last Modified:  2020-10-09 16:26:33
 * Modified By: Wang
 * -----
 * Copyright (c) 2020 Hisw
 * ------------------------------------
 * less will convenience!
 */

@height: 100vh;
// 字体 12 14 16 18 20 22 24 26 28 30
.font-size(20, 6); // 从6开始  一直2 * 6到20
.font-size(@font,@n,@size:2* @n) when (@n <= @font) {
  .font-@{size} {
    font-size: @size * 1px;
  }
  .font-size(@font, @n+1);
}
// 清楚浮动
.clearfix:after {
  clear: both;
  content: '';
  display: block;
}
:focus {
  outline: none;
}
.ellipsis() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ellipsis_clamp2() {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
